Carbon


Button

Header: Events.h Carbon status: Supported

Determines whether the user pressed the mouse button.

Boolean Button ();
DISCUSSION

The Button function looks in the Operating System event queue for a mouse-down event. If it finds one, the Button function returns true; otherwise, it returns false. To determine whether the mouse button is still down after a mouse-down event, use the StillDown function.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)